package cn.dceast.former.service;

import cn.dceast.former.dao.EyeModelUploadCloumMapper;
import cn.dceast.former.model.EyeModelUploadCloum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class EyeUploadInfoService {
    @Autowired
    private EyeModelUploadCloumMapper eyeModelUploadCloumMapper;

    public void saveUploadInfo(EyeModelUploadCloum emuc) {
        eyeModelUploadCloumMapper.saveUploadInfo(emuc);
    }

    public void deleteDataByModelId(int modelId) {
        eyeModelUploadCloumMapper.deleteDataByModelId(modelId);
    }

    public List<Map<String,Object>> getUploadDataList(int modelId) {
        return eyeModelUploadCloumMapper.getUploadDataList(modelId);
    }
    public List<Map<String,Object>> getUploadDataListByUseModel(int modelId) {
        return eyeModelUploadCloumMapper.getUploadDataListByUseModel(modelId);
    }

    public List<Map<String,Object>> checkDataIsNum(Map<String, Object> paramMap) {
        return eyeModelUploadCloumMapper.checkDataIsNum(paramMap);
    }

    public List<Map<String,Object>> getUploadTableData(String modelId) {
        List<Map<String,Object>> rtnList = eyeModelUploadCloumMapper.getUploadTableData(modelId);
        return rtnList;
    }

    public List<Map<String,Object>> getUploadCloumData(Map<String, Object> paramMap) {
        return eyeModelUploadCloumMapper.getUploadCloumData(paramMap);
    }

    public void updateUploadInfo(EyeModelUploadCloum emuc) {
        eyeModelUploadCloumMapper.updateUploadInfo(emuc);
    }
}
